package com.gitee.core.ftp;

import org.apache.commons.pool2.PooledObjectFactory;
import org.apache.commons.pool2.impl.GenericObjectPool;
import org.apache.commons.pool2.impl.GenericObjectPoolConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.jcraft.jsch.ChannelSftp;

/**
 * 自定义实现ftp连接池
 * 
 * @author PYY
 * 
 */
public class ChannelSftpPool extends GenericObjectPool<ChannelSftp> {

    private static Logger logger = LoggerFactory.getLogger(ChannelSftp.class);

    public ChannelSftpPool(ChannelSftpFactory factory) throws Exception {
        super(factory);
    }

    public ChannelSftpPool(PooledObjectFactory<ChannelSftp> factory, GenericObjectPoolConfig config) {
        super(factory, config);
    }

}
